//package com.groupbuying.customer.controller;
//
//import com.groupbuying.customer.service.RedPacketRegisterAndLoginService;
//import com.groupbuying.customer.utils.apiresult.ApiResult;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * @Author: mayunfei
// * @Date: Create in 15:17 2019/12/19
// * @tar:
// */
//@RestController
//@RequestMapping()
//public class LoginController {
//
//    @Autowired
//    private RedPacketRegisterAndLoginService redPacketRegisterAndLoginService;
//
//
//    /**
//     * @api {post} /unionidLogin unionid登录
//     * @apiExample author mayunfei
//     * tar 用于:微信小程序  调用
//     * date 2019/11/29
//     * @apiGroup bus-customer
//     * @apiVersion 1.0.0
//     * @apiHeader {String} Authorization 用户授权token
//     * @apiParam {Map} mobile:手机号
//     * @apiParam {Map} password:密码
//     * @apiParam {Map} wxCode:微信code
//     * @apiSuccess {ApiResult} success:登录成功; failure:请求
//     * @apiSuccess {ApiResult}  failure:请求
//     * @apiSuccess {ApiResult}  access_token失败
//     */
//    @PostMapping("/unionidLogin")
//    public ApiResult unionidLogin(@RequestParam("encryptedData") String encryptedData, @RequestParam("iv") String iv, @RequestParam("code") String code,@RequestParam("indicate") String indicate) {
//        return redPacketRegisterAndLoginService.unionIdLogin(encryptedData,iv,code,indicate);
//    }
//}
